<div class="form">
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'trinhdo-form',
	'enableAjaxValidation'=>false,
        'method'=>'post',
	'type'=>'horizontal',
        'enableClientValidation'=>true,
        'clientOptions' => array(
                'validateOnSubmit' => true,
          ),
	'htmlOptions'=>array(
		'enctype'=>'multipart/form-data'
	)
)); ?>
     	<fieldset>
		<legend>
			<p class="note"> Trường <span class="required">*</span> bắt buộc nhập.</p>
		</legend>

	
        		
   <div class="control-group">		
			<div class="span10">

	<?php echo $form->textFieldRow($model,'name',array('class'=>'span5','maxlength'=>45)); ?>

	<?php echo $form->textFieldRow($model,'slug',array('class'=>'span5','maxlength'=>45)); ?>

<?php echo $form->dropDownListRow($model,'published',array('1'=>'Kích hoạt', '0' => 'Khóa'),array('class' => 'span2')); ?>
                        </div>   
  </div>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
                        'icon'=>'ok white',  
			'label'=>$model->isNewRecord ? 'Tạo mới' : 'Cập nhật',
		)); ?>
              <?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'reset',
                        'icon'=>'remove',  
			'label'=>'Reset',
		)); ?>
	</div>
</fieldset>

<?php $this->endWidget(); ?>
<!-- seo name -->
<?php $this->widget('ext.TiiSlug.TiiSlug', array(
    'model' => $model,
    'source' => 'name',
    'target' => 'slug',
)); ?>
</div>
